<!-- 授信配置 -->
<template>
  <div>
    <a-tabs v-model="tab">
      <a-tab-pane :key="1" tab="产品授信"></a-tab-pane>
      <a-tab-pane :key="2" tab="综合授信"></a-tab-pane>
    </a-tabs>
    <div v-if="tab===1">
      <ProductCredit></ProductCredit>
    </div>
    <div v-if="tab===2">
      <ComprehensiveCredit></ComprehensiveCredit>
    </div>
  </div>
</template>
<script>
import ProductCredit from './ProductCredit.vue'
import ComprehensiveCredit from './ComprehensiveCredit.vue'
export default {
   components: {
    ProductCredit, ComprehensiveCredit
  },
  data () {
    return {
      tab: 1
    }
  },
  methods: {
    search () {
      this.$refs.page.search()
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
